package com.attilax.sync;

import com.attilax.exception.ExUtil;

public class AsyncUtil {
	public   void execMeth_Ays(final Runnable runnable, final String threadName) {
		// attilax 老哇的爪子  0_g_l   o8s 
		try {
			newThread(runnable,threadName);
		} catch (Exception e) {
		//	core.err(e);
			ExUtil.throwEx(e);
		}
		
	}
//	public   void execMeth_Ays(final Runnable runnable, final String threadName) {
//		// attilax 老哇的爪子  0_g_l   o8s 
//		try {
//			newThread(runnable,threadName);
//		} catch (Exception e) {
//		//	core.err(e);
//			ExUtil.throwEx(e);
//		}
//		
//	}
//	
	public   Thread newThread(final Runnable runnable, final String threadName) {
 

					Thread Thread_ini_fentsiController = new Thread(runnable);
					Thread_ini_fentsiController.setName(threadName);
					Thread_ini_fentsiController.setPriority(Thread.MAX_PRIORITY);
					Thread_ini_fentsiController.start();
					// System.out.println("--thrd:"+threadName);
					return Thread_ini_fentsiController;
			 
		
		}
}
